package com.springboot.studentmanagedemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: zhenghongwei
 * @createDate: 2021/12/6
 * @description: 映射请求跳转到页面
 */

@Controller
public class RouterController {


    @RequestMapping("/")
    public String test(){
        return "index";
    }

    @RequestMapping("/toAdd")
    public String toAdd(){
        return "add";
    }
    @RequestMapping("/toEdit")
    public String eidt(){
        return "edit";
    }
}
